package com.learn.bridge.bridge;

import com.learn.bridge.Bridge;
import com.learn.bridge.Implementor;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: ConcreteBridge </p>
 *
 * <p>描述: abstraction </p>
 *
 */
public class ConcreteBridge implements Bridge {

    private  Implementor implementor;

    public ConcreteBridge(Implementor implementor) {
        this.implementor = implementor;
    }

    @Override
    public void operation() {
        implementor.operation();
    }

    public void setImplementor(Implementor implementor) {
        this.implementor = implementor;
    }

    @Override
    public Implementor getImplementor() {
        return implementor;
    }
}
